package com.detection.dahua.service;

import com.detection.dahua.model.video.realTimePreview.HlsUrlRequest;
import com.detection.dahua.model.video.realTimePreview.HlsUrlResponse;

public interface IDahuaRealTimePreviewService {

    /**
     * 获取hls拼接地址
     * @param protocol 协议类型，http、https
     * @param ip 平台ip
     * @param port hls流端口
     * @param isCascade 是否是级联设备
     * @param channelId 通道id
     * @param streamType 码流类型
     * @param token 认证接口返回的access_token
     * @return
     */
    public String getJointHlsUrl(String protocol,String ip,String port,Boolean isCascade,String channelId,String streamType,String token);

    /**
     * 获取HLS、FLV、RTMP流地址
     */
    public HlsUrlResponse getHlsUrl(HlsUrlRequest hlsUrlRequest);
}
